package com.tourism.home.controller.system;

import com.tourism.home.entity.Result;
import com.tourism.home.service.GradeService;
import com.tourism.home.utils.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GradeController {

    @Autowired
    GradeService gradeService;

    @GetMapping("/post/total/num/{uid}")
    Result getUserCanPostNums(@PathVariable("uid") Integer uid){
        return ResultUtil.success(gradeService.getUserCanPostNums(uid));
    }
}
